//
//  KZRecordEvaluationTool.h
//  lg_zhinengbeikao_english
//
//  Created by 朱凯 on 2019/1/3.
//  Copyright © 2019 zhukai. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "KYTestEngine.h"

@interface KZRecordEvaluationTool : NSObject

@property (nonatomic, strong, readonly) KYTestConfig *config;

/**
 识别单词

 @param wordsCallback 回调（完整句子，单词词组）
 */
- (void)startRecordWithWordsCallback:(void (^)(NSString *sentence, NSArray * words))wordsCallback;

/**
 识别单词
 
 @param wordsCallback 回调（完整句子，单词词组）
 @param soundIntensityCallback 回调（音量）
 */
- (void)startRecordWithWordsCallback:(void (^)(NSString *sentence, NSArray * words))wordsCallback soundIntensityCallback:(void (^)(CGFloat soundIntensity))soundIntensityCallback;


//- (void)startRecord:(NSString *)refText soundIntensityCallback:(void (^)(CGFloat soundIntensity))soundIntensityCallback recordResultCallback:(void (^)(NSString * result))recordResultCallback;
/**
 结束录音，回调结果
 */
- (void)endRecord;
@end
